public class test2 {
    public static void main(String[] args) {
        RegularPolygon r1 = new RegularPolygon();
        RegularPolygon r2 = new RegularPolygon(6,4);
        RegularPolygon r3 = new RegularPolygon(10,4,5.6,7.8);

        System.out.println("r1:" + r1.getPerimeter() + " " + r1.getArea());
        System.out.println("r2:" + r2.getPerimeter() + " " + r2.getArea());
        System.out.println("r3:" + r3.getPerimeter() + " " + r3.getArea());
    }
}
